 
module DrunkenMaster
  class HttpResponse
    attr_accessor :body, :head, :code, :headers
    def initialize
      @code = 200
      @headers =  {"Content-Type"=>"text/html; charset=utf-8"}
      @body = "No output set."
    end
    
    def body= body
      @body = body
      if body.is_a? String
        @headers["Content-Length"] = body.length.to_s
      end
    end
  end
end